Skip to main content

All Questions

Tagged with
2votes
1answer
317views

How to properly use Data Transfer Objects

I feel something is wrong with my approach handling MVP and the Repository Pattern. I'm making an album winform app just to practice MVP, crud and the Repos. Pattern. First some code. The model: using ...
Valmont's user avatar
1vote
1answer
440views

Adding item (or incrementing count) to ListView, with the MVP pattern in WinForms

Description A WinForms application with the following as part of a form: When the "Add" button is clicked, a new entry is added to the ListView, with data from the TextBoxes and ...
Al2110's user avatar
1vote
1answer
431views

how should the MVP pattern handle views created at runtime?

how should the MVP pattern handle views created at runtime ? for example There is a mainView (that has a model and presenter) that needs to display a list, each item in the list is represented by it'...
user1450877's user avatar
1vote
1answer
1kviews

I have a few questions about the MVP pattern in a WinForms project

I hope someone can answer these. I have a WinForms project with +/- 8 forms. I have an SQLite database and a class that handles the queries to this database. I would like to use the passive View ...
Marthe Veldhuis's user avatar
1vote
1answer
2kviews

Why are interfaces necessary in MVP design pattern?

I am trying to understands MVP using Winforms. I found this example. Why do UserModel and UserView need to implement the IUserModel and IUserView interfaces ?
Orvel's user avatar
1vote
1answer
165views

Databinding When View Differs From Model

I have an entity Customer. Customer has a collection of Accounts. I have corresponding classes. The Customer class has-a List<Accounts>. I have two views. First page shows the Customer's name, ...
inquisitive's user avatar
3votes
0answers
976views

How should one handle a Parent-Child relationship using MVP?

In a conventional MDI WinForms application, one would go like this: public partial MainMdiForm : Form { public MainMdiForm() { InitializeComponent(); } private void ...
Will Marcouiller's user avatar
9votes
1answer
3kviews

Showing a View from another View in MVP

This question is regarding MVP triads. Lets say I have two triads and first one has View1, Mode1 and Presenter1. Second triad has View2, Model2 and Presenter2. Now what I trying to do is, I just want ...
CAD's user avatar
  • 345
1vote
1answer
2kviews

Presenter accessing the value in text box using sender object

I have following method in my presenters which validates the user inputs on the UI. Basically to capture the value of the text property of the text box, it uses sender object which was passed in by ...
CAD's user avatar
  • 345
5votes
1answer
4kviews

MVP Implementation at the UserControl Level

I'm trying to figure out how MVP should be implemented at the UserControl level. I thought I had it, but I ended up reading a blog post that pretty much shut me down. Now I'm back at the start and ...
Arclight's user avatar
0votes
1answer
1kviews

Model View Presenter for WebForms and Winforms

I have a windows forms project using the Model View Presenter pattern and would like to build a web forms project on top of the same MVP structure. The windows forms project knows nothing of ASP.Net ...
Matt F's user avatar

close